<?php
use_helper('I18N');
?>
<div class="breadcrumbs" id="breadcrumbs">

<style>
.alignRight{
    text-align: right;
}
</style>
<script>
$(function() {

});
</script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="/member/gameLogin"><?php echo __('Games Login') ?></a>
        </li>
    </ul>

    <div class="nav-search" id="nav-search">
        <form class="form-search">
            <span class="input-icon">
                <input type="text" placeholder="Search ..." class="nav-search-input"
                       id="nav-search-input" autocomplete="off"/>
                <i class="icon-search nav-search-icon"></i>
            </span>
        </form>
    </div>
    <!-- #nav-search -->
</div>

<div class="page-content">

    <div class="row">
        <div class="col-xs-12">
            <h3 class="header smaller lighter green"><?php echo __('Games Login') ?></h3>

            <!-- PAGE CONTENT BEGINS -->
            <?php include_component('component', 'alert', array('param' => $sf_user->getAttribute(Globals::SESSION_DISTID, 0))) ?>

            <div class="table-header">
                <?php echo __('Games Login List') ?>
            </div>
            <div class="table-responsive">
            <table id="sample-table" class="table table-striped table-bordered table-hover">
                <thead>
                <tr>
                    <th><?php echo __('No.') ?></th>
                    <th><?php echo __('Game') ?></th>
                    <th><?php echo __('Login URL') ?></th>
                    <th><?php echo __('User Name') ?></th>
                    <th><?php echo __('Password') ?></th>
                </tr>
                </thead>
                <tbody>
<?php
if (count($gameLogins) <= 0) {
    ?>
<tr>
    <td colspan="8" align="center"><?php echo __("No data available in table") ?></td>
</tr>
    <?php

} else {
    $index = 1;
    foreach ($gameLogins as $gameLogin) {
        ?>
    <tr>
        <td><?php echo $index++; ?></td>
        <td><?php echo $gameLogin->getGame(); ?></td>
        <td><a href="<?php echo $gameLogin->getGameUrl(); ?>" target="_blank"><?php echo $gameLogin->getGameUrl(); ?></a></td>
        <td><b class="green"><?php echo $gameLogin->getGameUsername(); ?></b></td>
        <td><b class="green"><?php echo $gameLogin->getGameUserpassword(); ?></b></td>
    </tr>
            <?php

    }
}
?>
                </tbody>
            </table>
            <!-- PAGE CONTENT ENDS -->
        </div>
        <!-- /.col -->
    </div>
</div>